package com.yixin.hospital.entity.dto.req.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel("登录请求体")
@Data
public class LoginReqDTO {

    @ApiModelProperty("账号")
    @NotBlank(message = "账号不能为空")
    private String phone;
    @ApiModelProperty("密码")
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty("部门")
    @NotNull(message = "部门不能为空")
    private Long deptId;

    @ApiModelProperty("职务")
    @NotNull(message = "职务不能为空")
    private Long jobDuty;

    @ApiModelProperty("是否出诊  1出诊 0不出诊")
    private Integer isVisit;

    @ApiModelProperty("工作地点")
    private Long workAddress;


    @ApiModelProperty("科室")
    private Long jobOffice;


}
